package com.jprocms.module.cms.convert.tasksensitiveresult;

import com.jpro.framework.common.pojo.PageResult;
import com.jprocms.module.cms.controller.admin.sensitivetask.vo.TaskSensitiveResultCreateReqVO;
import com.jprocms.module.cms.controller.admin.sensitivetask.vo.TaskSensitiveResultExcelVO;
import com.jprocms.module.cms.controller.admin.sensitivetask.vo.TaskSensitiveResultRespVO;
import com.jprocms.module.cms.dal.dataobject.tasksensitiveresult.TaskSensitiveResultDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 敏感词扫描任务结果 Convert
 *
 * @author jprocms
 */
@Mapper
public interface TaskSensitiveResultConvert {

    TaskSensitiveResultConvert INSTANCE = Mappers.getMapper(TaskSensitiveResultConvert.class);

    TaskSensitiveResultDO convert(TaskSensitiveResultCreateReqVO bean);

    TaskSensitiveResultRespVO convert(TaskSensitiveResultDO bean);

    List<TaskSensitiveResultRespVO> convertList(List<TaskSensitiveResultDO> list);

    PageResult<TaskSensitiveResultRespVO> convertPage(PageResult<TaskSensitiveResultDO> page);

    List<TaskSensitiveResultExcelVO> convertList02(List<TaskSensitiveResultDO> list);

}
